﻿using System;
using ReadyApps.Data;

namespace ReadyApps.Wiki.Views
{
    abstract class DataViewBase : ViewBase
    {
        #region Variables and Constants

        protected int pageID;
        protected IWikiDataProvider dataProvider;

        #endregion

        #region Constructor

        public DataViewBase(int wikiPageID, WikiControlSettings wikiControlSettings, IWikiDataProvider wikiDataProvider)
            : base(wikiControlSettings)
        {
            if (wikiDataProvider == null)
            {
                throw new ArgumentNullException("wikiDataProvider");
            }
            dataProvider = wikiDataProvider;
            pageID = wikiPageID;
        }

        #endregion
    }
}
